package com.wnx.job.modules.rms.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnx.job.modules.rms.mapper.RmsCertificateMapper;
import com.wnx.job.modules.rms.model.RmsCertificate;
import com.wnx.job.modules.rms.service.RmsCertificateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-17
 */
@Service
public class RmsCertificateServiceImpl extends ServiceImpl<RmsCertificateMapper, RmsCertificate> implements RmsCertificateService {

    @Resource
    private RmsCertificateMapper certificateMapper;

    /**
     * 根据简历ID获取学生荣誉证书集合
     * @param resumeId
     * @return
     */
    @Override
    public List<RmsCertificate> findCertificateListByResumeId(Long resumeId) {
            return  certificateMapper.selectList(new QueryWrapper<RmsCertificate>().eq("resume_id",resumeId));
    }
}
